package com.ruoyi.auth.form;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

/**
 * 用户登录对象
 *
 * @author ruoyi
 */

@Data
@Schema(description = "用户登录入参对象")
public class LoginBody
{

    @Schema(description = "用户名,登录名/手机号",example = "13685757051",required = true)
    private String username;

    @Schema(description = "密码,传SHA-256哈希密码")
    private String password;

    @Schema(description = "验证码 账号密码/手机验证码,登录时必传")
    private String code;

    @Schema(description = "获取验证码时返回的唯一标识;账号密码/手机验证码,登录时必传")
    private String uuid;

    @Schema(description = "登录方式 1-账号密码;2-手机短信验证码;3-第三方授权登录",allowableValues = {"1", "2", "3"},required = true)
    private String type;

}
